package com.expert.service.impl;

import com.expert.common.page.MyPage;
import com.expert.entity.Feature;
import com.expert.entity.Result;
import com.expert.mapper.ResultMapper;
import com.expert.service.ResultService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Mankind
 * @since 2018-06-03
 */
@Service
public class ResultServiceImpl extends ServiceImpl<ResultMapper, Result> implements ResultService {

    public MyPage<Result> list(MyPage<Result> page) {
        List<Result> results = baseMapper.list(page);
        page.setRecords(results);
        return page;

    }
}
